"""
线索转换为客户页面类
"""
from ..base_page import BasePage
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select

class SwitchCustomerPage(BasePage):
    #数据
    url="/crm/index.php?m=leads"
    #定位器
    save_locator = (By.NAME, "submit")
    code_locator = (By.XPATH, "/html/body/div[5]/div[2]/div/form/table/tbody/tr[4]/td[4]/input")

    #方法
    def save(self):
        self.click(self.save_locator)
    def code(self,code):
        self.send_keys(self.code_locator,code)

